package com.wufan.day06;

/**
 * @author SongWufan
 * @date 2021/3/18 21:50
 */
public class Student extends Person1{
    String major;

    public Student() {

    }

    public Student(String name, int age, String major) {
        this.name = name;
        this.age = age;
        this.major = major;
    }

    public void study() {
        System.out.println("学习");
    }

}
